import service from "@/axconfig";

//把请求定义出来
export const roleList = query => {
    return service.get("/role/list");
}

export const userList = query => {
    return service.get("/user/page", {
        params: query
    });
}

export const userDelById = query => {
    return service.get("/user/del", {
        params: query
    });
}
export const userAdd = query => {
    return service.post("/user/save", query);
}
export const userGet = query => {
    return service.get("/user/get", {
        params: query
    });
}
export const imgServerUrl = query => {
    return service.defaults.baseURL + "/showImg?imgName=" + query;
}